package com.gdut.huayan.entity.dto;

import lombok.Data;

@Data
public class Result {

    private Integer code;

    private String message;

    private Object data;

    public static Result success(Object o){
        Result result = new Result();
        result.setCode(200);
        result.setMessage("成功");
        result.setData(o);
        return result;
    }

    public static Result success(){
        return success(null);
    }

}

